// Copyright @ ChenChao


#include "Items/Weapons/WarriorWeaponBase.h"

#include "Components/BoxComponent.h"


AWarriorWeaponBase::AWarriorWeaponBase()
{
 	
	PrimaryActorTick.bCanEverTick = false;

	WeaponMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("WeaponMesh"));
	SetRootComponent(WeaponMesh);

	WeaponCollisionBox = CreateDefaultSubobject<UBoxComponent>(TEXT("WeaponCollisionBox"));
	WeaponCollisionBox -> SetupAttachment(GetRootComponent());
	WeaponCollisionBox->SetBoxExtent(FVector(20.f));	//设置武器碰撞盒(WeaponCollisionBox)的尺寸范围
	WeaponCollisionBox->SetCollisionEnabled(ECollisionEnabled::NoCollision);

	
}

